package cn.jiyun.service.impl;

import cn.jiyun.bean.User;
import cn.jiyun.mapper.UserMapper;
import cn.jiyun.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/4/20.
 */
@Service
public class UserSericeImpl implements UserService{
    @Resource
    private UserMapper mapperl;
    public void add(User user) {
        mapperl.add(user);
    }

    public List<User> findAll() {
        return mapperl.findAll();
    }

    public void del(Integer uid) {
    mapperl.del(uid);
    }
}
